/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.adv.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 企业广告管理Entity
 * @author 罗天文
 * @version 2018-11-06
 */
public class HkEnterpriseProduct extends DataEntity<HkEnterpriseProduct> {
	
	private static final long serialVersionUID = 1L;
	private HkEnterpriseAdv enterpriseAdv;		// enterprise_adv_id 父类
	private String product;		// product_id
	private Integer sort;		// sort
	private String imgUrl;		// img_url
	private String title;		// title
	
	public HkEnterpriseProduct() {
		super();
	}

	public HkEnterpriseProduct(String id){
		super(id);
	}

	public HkEnterpriseProduct(HkEnterpriseAdv enterpriseAdv){
		this.enterpriseAdv = enterpriseAdv;
	}

	@Length(min=0, max=32, message="enterprise_adv_id长度必须介于 0 和 32 之间")
	public HkEnterpriseAdv getEnterpriseAdv() {
		return enterpriseAdv;
	}

	public void setEnterpriseAdv(HkEnterpriseAdv enterpriseAdv) {
		this.enterpriseAdv = enterpriseAdv;
	}
	
	@Length(min=0, max=32, message="product_id长度必须介于 0 和 32 之间")
	public String getProduct() {
		return product;
	}

	public void setProduct(String product) {
		this.product = product;
	}
	
	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}
	
	@Length(min=0, max=200, message="img_url长度必须介于 0 和 200 之间")
	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}
	
	@Length(min=0, max=200, message="title长度必须介于 0 和 200 之间")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
}